
public class Total {
	public static void main(String[] args) {
		int total = 0;
		for(int i=0; i<3;i++){
			total += i;
			}
			System.out.println(total);
			System.out.println();
			oddsum();
	}

	private static void oddsum() {
		int total = 0;
		for(int i = 1; i<101;i+=2){
			total +=i;
		}
		System.out.println("1부터 100까지, 홀수의 합은 : " + total);
	}
}
